package com.jacklin.market.coupon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jacklin.market.coupon.domain.UserCoupon;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 用户优惠券服务
 *
 * @author: jacklin
 * @since: 2022/3/26 15:54
 */
@Mapper
public interface UserCouponMapper extends BaseMapper<UserCoupon> {

    /**
     * @describe: 更新用户优惠券使用状态
     * @author: jacklin
     * @date: 2022/3/28
     **/
    boolean updateUserCouponStatus(@Param("userId") String userId, @Param("couponCode") String couponCode);
}
